#!/usr/bin/gnuplot
reset

set xlabel "time (milliseconds)"

set format x "%.1s 10^%S"

set yrange [0:500]

set ylabel "number"

set key reverse Left outside
set grid

set style data lines

set multiplot layout 2, 2

set title "File 1 (popular) evolution"

set size 0.5, 0.5

set style line 1 linecolor rgb "green" linetype 1 linewidth 4
set style line 2 linecolor rgb "red" linetype 1 linewidth 4
set style line 3 linecolor rgb "navy" linetype 1 linewidth 4

plot "gnuplot_output.dat" using 1:2 title "seeders" with lines linestyle 1, \
"" using 1:3 title "leechers" with lines linestyle 2, \
"" using 1:4 title "not interested" with lines linestyle 3

set title "File 4 (common) evolution"

set size 0.5, 0.5

plot "gnuplot_output.dat" using 1:11 title "seeders" with lines linestyle 1, \
"" using 1:12 title "leechers" with lines linestyle 2, \
"" using 1:13 title "not interested" with lines linestyle 3

set title "File 9 (rare) evolution"

set size 0.5, 0.5

plot "gnuplot_output.dat" using 1:26 title "seeders" with lines linestyle 1, \
"" using 1:27 title "leechers" with lines linestyle 2, \
"" using 1:28 title "not interested" with lines linestyle 3

set title "File 10 (trending) evolution"

set size 0.5, 0.5

plot "gnuplot_output.dat" using 1:29 title "seeders" with lines linestyle 1, \
"" using 1:30 title "leechers" with lines linestyle 2, \
"" using 1:31 title "not interested" with lines linestyle 3

unset multiplot
#
